package boot.spring.entity;

import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


public class UserInfo {
	private Integer userId;
	private String phone;
	private String salt;
	private String password;
	private String avatar;
	private String name;
	private Integer sex;
	private Date birth;
	private Date createTime;
	private Date updateTime;
	private Integer flag;
	
	private List<Role> rList;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public List<Role> getrList() {
		return rList;
	}

	public void setrList(List<Role> rList) {
		this.rList = rList;
	}

	public UserInfo(Integer userId, String phone, String salt, String password, String avatar, String name, Integer sex,
			Date birth, Date createTime, Date updateTime, Integer flag, List<Role> rList) {
		super();
		this.userId = userId;
		this.phone = phone;
		this.salt = salt;
		this.password = password;
		this.avatar = avatar;
		this.name = name;
		this.sex = sex;
		this.birth = birth;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.flag = flag;
		this.rList = rList;
	}

	public UserInfo() {
		super();
	}
	
	
}
